package com.abc.proxy.dynamic;

import com.abc.proxy.statics.IStudentDao;
import com.abc.proxy.statics.StudentDaoImpl;

public class AppTest {

   public static void main(String[] args) throws Exception {

      System.getProperties().put("sun.misc.ProxyGenerator.saveGeneratedFiles", "true");

      StudentDaoImpl studentDao = new StudentDaoImpl();

      IStudentDao proxy = (IStudentDao) new StudentProxy(studentDao).newInstance();

      proxy.insert();
   }
}
